package com.dfec.book.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

import javax.validation.constraints.NotEmpty;

/**
 * swagger属性类
 *
 * @author tangrg
 * @email 1446232546@qq.com
 * @date 2025-06-2025/6/18 09:49:22
 */
@ConfigurationProperties("df.swagger")
public class SwaggerProperties {

    /**
     * 标题
     */
    @NotEmpty(message = "标题不能为空")
    private String title;

    /**
     * 描述
     */
    @NotEmpty(message = "描述不能为空")
    private String description;

    /**
     * 作者
     */
    @NotEmpty(message = "作者不能为空")
    private String author;

    /**
     * 版本
     */
    @NotEmpty(message = "版本不能为空")
    private String version;

    /**
     * url
     */
    @NotEmpty(message = "扫描的 package 不能为空")
    private String url;

    /**
     * email
     */
    @NotEmpty(message = "扫描的 email 不能为空")
    private String email;

    /**
     * license
     */
    @NotEmpty(message = "扫描的 license 不能为空")
    private String license;

    /**
     * license-url
     */
    @NotEmpty(message = "扫描的 license-url 不能为空")
    private String licenseUrl;

    /**
     * 分组名称
     */
    private String groupName;

    /**
     * 扫描的包
     *
     * @return
     */
    private String scanPackage;


    public @NotEmpty(message = "标题不能为空") String getTitle() {
        return title;
    }

    public void setTitle(@NotEmpty(message = "标题不能为空") String title) {
        this.title = title;
    }

    public @NotEmpty(message = "描述不能为空") String getDescription() {
        return description;
    }

    public void setDescription(@NotEmpty(message = "描述不能为空") String description) {
        this.description = description;
    }

    public @NotEmpty(message = "作者不能为空") String getAuthor() {
        return author;
    }

    public void setAuthor(@NotEmpty(message = "作者不能为空") String author) {
        this.author = author;
    }

    public @NotEmpty(message = "版本不能为空") String getVersion() {
        return version;
    }

    public void setVersion(@NotEmpty(message = "版本不能为空") String version) {
        this.version = version;
    }

    public @NotEmpty(message = "扫描的 package 不能为空") String getUrl() {
        return url;
    }

    public void setUrl(@NotEmpty(message = "扫描的 package 不能为空") String url) {
        this.url = url;
    }

    public @NotEmpty(message = "扫描的 email 不能为空") String getEmail() {
        return email;
    }

    public void setEmail(@NotEmpty(message = "扫描的 email 不能为空") String email) {
        this.email = email;
    }

    public @NotEmpty(message = "扫描的 license 不能为空") String getLicense() {
        return license;
    }

    public void setLicense(@NotEmpty(message = "扫描的 license 不能为空") String license) {
        this.license = license;
    }

    public @NotEmpty(message = "扫描的 license-url 不能为空") String getLicenseUrl() {
        return licenseUrl;
    }

    public void setLicenseUrl(@NotEmpty(message = "扫描的 license-url 不能为空") String licenseUrl) {
        this.licenseUrl = licenseUrl;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getScanPackage() {
        return scanPackage;
    }

    public void setScanPackage(String scanPackage) {
        this.scanPackage = scanPackage;
    }
}

